package cn.edu.scau.cmi.luoxintai.abstractFactory.domainInterface;

import java.util.Scanner;

import cn.edu.scau.cmi.luoxintai.FactoryMethod.BeefMeatFactory;
import cn.edu.scau.cmi.luoxintai.FactoryMethod.ChickenMeatFactory;
import cn.edu.scau.cmi.luoxintai.FactoryMethod.MainFactory;
import cn.edu.scau.cmi.luoxintai.FactoryMethod.PorkMeatFactory;
import cn.edu.scau.cmi.luoxintai.FactoryMethod.Product;

public class TianbangFactory extends AbstractFactory {
	Product pp =null;
	public  MainFactory Creat() {
		System.out.printf("Thanks for choosing Tianbang!\n");
		System.out.printf("Factory:Choose your dinner and you only need to input the number : \n 1.Meat,2.Beef,3.Chicken\n");
		Scanner in =new Scanner(System.in);
		int a = in.nextInt();
		switch(a) {
		case 1:pp = new PorkMeatFactory();
			   pp.Creat();
			   break;
		case 2:pp = new BeefMeatFactory();
			   pp.Creat();
			   break;
		case 3:pp = new ChickenMeatFactory();
			   pp.Creat();
			   break;
		default:System.out.printf("Sorry,we have not what you order\nPlease try again.\n");
				break;
		}
		return null;
	}


}